<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>三星</title>
  <style>
    div{
      width: 240px;
      height:132px;
      position: relative;
    }
    p{
      position: absolute;
      bottom: 0;
      left:0;
      right:0;
      margin: 0;
      color: white;
      background-color: rgba(0,0,0,0.5);
      /*width: 100%;*/
      padding: 3px 0 3px 0;
    }

  </style>
</head>
<body>
<div>
  <img src="img.png" alt="图片丢了">
  <p class="">三星再现关闭手机工厂风波</p>
</div>

</body>
</html>